package homework_07;

/**
 * 大巴类，继承客车类，加入价格属性
 */
public class LBus extends Bus {
    private int price;

    public LBus(){
        super("15座以上");
        this.price = 1200;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int calTotal(int days){
        int cal = this.price * days;
        return cal;
    }
}
